package com.shared.model.etat;

import javax.persistence.Id;

import com.googlecode.objectify.annotation.Entity;
import com.shared.model.Contrat;


@Entity
public abstract class EtatContrat {
	
	@Id protected Long key;
	
	public abstract void valider(Contrat contrat);

	/**
	 * @param id the id to set
	 */
	public void setKey(Long id) {
		this.key = id;
	}

	/**
	 * @return the id
	 */
	public Long getKey() {
		return key;
	}
	
	public abstract TypeEtatContrat getTypeEtatContrat();
	
	public String toString(){
		return getTypeEtatContrat().label;
	}
	
}
